package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscTaskLoan;
import com.fdb.efp.nls.service.vo.RscTaskLoanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:风险分类台账				<p>
 * @author chenqm1
 * @date 2018-05-07
 */
public interface RscTaskLoanDao {
	
	public int insertRscTaskLoan(RscTaskLoan rscTaskLoan);
	
	public int deleteByPk(RscTaskLoan rscTaskLoan);
	
	public int updateByPk(RscTaskLoan rscTaskLoan);
	
	public RscTaskLoan queryByPk(RscTaskLoan rscTaskLoan);
	
	public List<RscTaskLoan> queryAllOwnerByPage(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoanVO> querySignAll(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllCurrOrgByPage(RscTaskLoanVO rscTaskLoan);
	
	public List<RscTaskLoan> queryAllCurrDownOrgByPage(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllCurrOwnerPrdByPage(RscTaskLoanVO rscTaskLoan);

	public RscTaskLoan queryByBillNo(RscTaskLoan queryRscTaskLoan);

	public int updateByBillNo(RscTaskLoan queryRscTaskLoan);

	public RscTaskLoan queryByContNo(RscTaskLoan queryRscTaskLoan);
	
//	public int updateByContNo(RscTaskLoan queryRscTaskLoan);
	
	public int insertBatchRscTaskLoan(@Param(value = "rscTaskLoans") List<RscTaskLoan> rscTaskLoanList);

	public int rscTaskLoanCusHandOver(@Param("fromUser") String fromUser, @Param("toUser") String toUser, @Param("fromBrId") String fromBrId, @Param("toBrId") String toBrId, @Param("cusIds") List<String> cusIds);
	
	/**
	 * 七级分类，根据客户号查询分类台账
	 * @param cusIds
	 * @return
	 */
	public List<RscTaskLoan> queryRscTaskLoanByCusIds4SevenClassify(@Param("cusIds") List<String> cusIds);

	public List<RscTaskLoan> queryAllOwner(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllCurrOrg(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllCurrDownOrg(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllCurrOwnerPrd(RscTaskLoanVO rscTaskLoan);

	public List<RscTaskLoan> queryAllAdjustByPage(RscTaskLoanVO rscTaskLoan);
}
